var status = -1;

function action(f, e, d) {
    status++;
    var g = 45;
    var b = 32024 + g / 5;
    var a = 1142685 + g / 5;
    if (cm.isQuestFinished(b)) {
        cm.dispose();
        return
    }
    var c = -1;
    if (status <= c++) {
        cm.dispose()
    } else {
        if (status === c++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, false);
            cm.setStandAloneMode(true);
            cm.forceStartQuest(b);
            cm.inGameDirectionEvent_AskAnswerTime(500)
        } else {
            if (status === c++) {
                cm.sendNextNoESC("视贺你！你是第一次来到第" + g + "层吧？真是太了不起了！", 2540000)
            } else {
                if (status === c++) {
                    cm.sendNextNoESC("我要送你一份礼物！", 2540000)
                } else {
                    if (status === c++) {
                        cm.sendNextNoESC("希望你能继续保持，我们马上就要到达最深处了！", 2540000)
                    } else {
                        if (status === c++) {
                            cm.forceCompleteQuest(b);
                            cm.gainItem(a, 1);
                            cm.curNodeEventEnd(true);
                            cm.setInGameDirectionMode(false, true);
                            cm.setStandAloneMode(false);
                            cm.dispose()
                        } else {
                            cm.dispose()
                        }
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};